﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="Stylesheet" type="text/css" media="screen" href="Screen.css" />
  <title>STP_SetPortAdminP2P</title>
</head>
<body>
	<h3>STP_SetPortAdminP2P</h3>
	<hr />
<pre>
void STP_SetPortAdminP2P
(
    BRIDGE*        bridge,
    unsigned int   portIndex,
    STP_ADMIN_P2P  adminPointToPointMAC
);
</pre>
	<h4>
		Summary</h4>
	<p>
		Sets the AdminP2P parameter for a given port.</p>
	<h4>
		Parameters</h4>
	<dl>
		<dt>bridge</dt>
		<dd>Pointer to a BRIDGE object, obtained from <a href="STP_CreateBridge.html">
			STP_CreateBridge</a>.</dd>
		<dt>portIndex</dt>
		<dd>The index of the port for which the AdminP2P parameter is to be set.</dd>
		<dt>adminPointToPointMAC</dt>
		<dd>One of the <a href="STP_ADMIN_P2P.html">STP_ADMIN_P2P</a> values.</dd>
	</dl>
	<h4>
		Remarks</h4>
		<p>
			See §6.6.3 in 802.1Q-2011 for more information.</p>
	<p>
			The current library code was not tested in scenarios where this function is called after the bridge 
			has been started. It was only tested in scenarios where this function is called once, after <a href="STP_CreateBridge.html">STP_CreateBridge</a> is 
			called, and before <a href="STP_StartBridge.html">STP_StartBridge</a> is called.</p>
	<p>
			Execution of this function is a potentially lengthy process. 
			It may call various callbacks multiple times.</p>
	<p>
			This function may not be called from within an <a href="STP_CALLBACKS.html">STP callback</a>.</p>
	
</body>
</html>
